<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>运营管理后台</title>
		<!-- CSS -->
		<link href="css/OpenSans.css" rel="stylesheet" type="text/css">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link href="css/jasny-bootstrap.min.css" rel="stylesheet">
		<link href="css/font-awesome.css" rel="stylesheet" type="text/css">
		<link href="css/daterangepicker-bs3.css" rel="stylesheet" type="text/css">
		<link href="css/datepicker.css" rel="stylesheet" type="text/css">
		<link href="css/select2.css" rel="stylesheet" type="text/css">
		<link href="css/select2-bootstrap.css" rel="stylesheet" type="text/css">
		<link href="css/uniform.default.min.css" rel="stylesheet" type="text/css">

		<!--<link href="scripts/css/prettify.css" rel="stylesheet" type="text/css" />
        <link href="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />-->
		<link href="css/fullcalendar.css" rel="stylesheet">
		<link href="css/fullcalendar.print.css" rel="stylesheet" media="print">
		<link href="css/toastr.min.css" rel="stylesheet">
		<link href="css/ark.css" rel="stylesheet" type="text/css">
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
            <script src="/manager/js/html5shiv.js"></script>
            <script src="/manager/js/respond.min.js"></script>
        <![endif]-->
		<script src="js/jquery.min.js"></script>
	</head>

	<body class="cover">
		<div class="wrapper">
			<!-- HEAD NAV -->
			<DIV class="navbar navbar-default navbar-static-top navbar-main" role="navigation">
				<DIV class="navbar-header">
					<A class="navbar-brand" href="#">
						运营管理后台</A>
				</DIV>
				<UL class="nav navbar-nav navbar-left">
					<LI class="sidemenu-switch">
						<A href="#">
							<SPAN class="sr-only">Toggle navigation</SPAN>
							<I class="fa fa-bars"></I>
						</A>
					</LI>
				</UL>
				<UL class="nav navbar-nav navbar-right">
					<LI class="visible-xs">
						<A class="navbar-toggle" href="#" data-toggle="collapse" data-target=".sidebar">
							<SPAN class="sr-only">Toggle 
  navigation</SPAN>
							<I class="fa fa-bars"></I> </A>
					</LI>
					<LI class="dropdown">
						<A class="dropdown-toggle avatar pull-right" href="#" data-toggle="dropdown">
							<SPAN class="hidden-small">管理员<B 
  class="caret"></B></SPAN> </A>
						<UL class="dropdown-menu pull-right">
							<LI>
								<A href="#">
									<I class="fa fa-sign-out"></I>退出登录</A>
							</LI>
						</UL>
					</LI>
				</UL>
			</DIV>
			<!-- END: HEAD NAV -->

			<!-- BODY -->
			<div class="body">
				<!-- SIDEBAR -->
				<!-- SIDEBAR -->
				<ASIDE class="sidebar">
					<UL class="nav nav-stacked">
						<LI class="menu">
							<A class="menu-toggle" href="#">
								<I class="fa fa-users fa-fw"></I>
								<SPAN class="item-label">玩家管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI class="active">
									<A href="user-list.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>玩家列表</SPAN>
									</A>
								</LI>
								<LI>
									<A href="usergame-list.html">
										<I class="fa fa-list fa-fw"></I>
										<SPAN>玩家游戏统计</SPAN>
									</A>
								</LI>
								<LI>
									<A href="user-gold.html">
										<I class="fa fa-support fa-fw"></I>
										<SPAN>金币记录</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					
						
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-user fa-fw"></I>
								<SPAN class="item-label">系统用户<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="user-manage.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>用户管理</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#">
										<I class="fa fa-th-large fa-fw"></I>
										<SPAN>角色与权限</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-phone fa-fw"></I>
								<SPAN class="item-label">客户服务<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#">
										<I class="fa fa-credit-card fa-fw"></I>
										<SPAN>会员反馈处理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-adn fa-fw"></I>
								<SPAN class="item-label">应用管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/app/notices">
										<I class="fa fa-bullhorn fa-fw"></I>
										<SPAN>公告设置</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/app/apps">
										<I class="fa fa-android fa-fw"></I>
										<SPAN>版本管理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-header fa-fw"></I>
								<SPAN class="item-label">活动管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/activity/activities">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>活动列表</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-bar-chart-o fa-fw"></I>
								<SPAN class="item-label">数据统计<I class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="richest-player.html">
										<I class="fa fa-users fa-fw"></I>
										<SPAN>玩家排名统计</SPAN>
									</A>
								</LI>
								
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-sliders fa-fw"></I>
								<SPAN class="item-label">系统管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/system/logs">
										<I class="fa fa-history fa-fw"></I>
										<SPAN>系统日志</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/player/players#">
										<I class="fa fa-cloud fa-fw"></I>
										<SPAN>系统监控</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					</UL>
				</ASIDE>
				<!-- END: SIDEBAR -->
				<!-- END: SIDEBAR -->

				<section class="content" style="min-height: 866px;">
					<ol class="breadcrumb">
						<li>
							<a href="#player/players"><i class="fa fa-sort-alpha-asc fa-fw"></i>玩家列表</a>
						</li>
						<li class="active">玩家信息</li>
					</ol>
					<!-- CONTENT -->
					<div class="main-content">
						<ul class="nav nav-tabs" role="tablist">
							<li class="active">
								<a href="#player/player/1033">玩家信息</a>
							</li>
							<li>
								<a href="#player/player/1033/logs/card">房卡记录</a>
							</li>
							<li>
								<a href="#player/player/1033/logs/gold">金币记录</a>
							</li>
							<li>
								<a href="#player/player/1033/logs/score">积分记录</a>
							</li>
							<li>
								<a href="#player/player/1033/games">游戏记录</a>
							</li>
						</ul>
						<br>
						<form method="post" action="#player/player/1033" class="form-horizontal" onsubmit="return validateForm()">
							<div class="content-header">
								<div class="row ">
									<div class="col-md-6">
										<h4 class="header-title">玩家信息</h4>
									</div>
									<div class="col-md-6 text-right">
										<button class="btn btn-primary" type="submit">保存</button>
									</div>
								</div>
							</div>
							<hr class="no-top-margin">
							<div class="row">
								<div class="col-md-8">
									<div class="form-group">
										<label class="col-md-2 control-label">用户ID</label>
										<div class="col-md-10">
											<input type="text" name="id" readonly="readonly" value="1033" class="form-control" placeholder="用户ID" required="">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">用户帐号</label>
										<div class="col-md-10">
											<input type="text" name="username" readonly="readonly" value="guest_1521524375822" class="form-control" placeholder="用户帐号" required="">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">所属销售</label>
										<div class="col-md-10">
											<select class="form-control" name="seller">
												<option value="0">--</option>

											</select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">所属代理</label>
										<div class="col-md-10">
											<select class="form-control" name="agent">
												<option value="0">--</option>

											</select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">昵称</label>
										<div class="col-md-10">
											<input type="text" name="nickname" value="宇文赌圣" class="form-control" placeholder="昵称">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">姓名</label>
										<div class="col-md-10">
											<input type="text" name="name" value="" class="form-control" placeholder="姓名">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">性别</label>
										<div class="col-md-10">
											<select name="gender" class="form-control">
												<option value="0">未知</option>
												<option value="1">男</option>
												<option value="2" selected="selected">女</option>
											</select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">手机号</label>
										<div class="col-md-10">
											<div class="input-group">
												<span class="input-group-addon"><i class="fa fa-phone"></i></span>
												<input type="number" name="phoneNumber" value="" class="form-control" placeholder="请输入手机号">
											</div>
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">房卡数</label>
										<div class="col-md-10">
											<input type="text" name="roomcard" value="7" class="form-control" placeholder="房卡数" readonly="readonly">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 text-right">账号状态</label>
										<div class="col-md-10">
											<label class="radio-inline">
									  <div class="radio"><span class="checked"><input type="radio" name="active" value="1" checked="checked"></span></div> 正常
									</label>
											<label class="radio-inline">
									  <div class="radio"><span><input type="radio" name="active" value="0"></span></div> 关闭
									</label>
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">注册时间</label>
										<div class="col-md-10">
											<input type="text" name="registerDate" value="2018-03-20 14:01:49" class="form-control" placeholder="注册时间" readonly="readonly">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">最后登录</label>
										<div class="col-md-10">
											<input type="text" name="lastLoginAt" value="2018-03-22 09:34:44" class="form-control" placeholder="最后登录" readonly="readonly">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 control-label">最后登录IP</label>
										<div class="col-md-10">
											<input type="text" name="lastLoginIp" value="121.69.54.75" class="form-control" placeholder="最后登录IP" readonly="readonly">
										</div>
									</div>
								</div>
							</div>
						</form>
					</div>
					<!-- END: CONTENT -->

				</section>
			</div>
			<!-- END: BODY -->
		</div>
		<!-- JS -->
		<script src="js/jquery-ui.min.js"></script>
		<script src="js/jquery.uniform.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/jasny-bootstrap.min.js"></script>
		<script src="js/jquery.autosize.min.js"></script>
		<script src="js/moment.min.js"></script>
		<script src="js/daterangepicker.js"></script>
		<script src="js/bootstrap-datepicker.js"></script>
		<script src="js/fullcalendar.min.js"></script>
		<!-- <script src="/manager/vendor/dropzone/dist/min/dropzone.min.js"></script> -->
		<script src="js/select2.min.js"></script>
		<script src="js/base.js"></script>
		<!-- <script src="/manager/js/ark.js"></script> -->
		<script src="js/toastr.min.js"></script>
		<script src="js/admin.js"></script>

		<script src="js/md5.min.js"></script>
		<script type="text/javascript">
			$(function() {
				$("select[name=saler]").select2();
				if($("select[name=saler]").val()) {
					bindAgentBySaler($("select[name=saler]").val());
				}
				$("select[name=saler]").on('change', function() {
					if($(this).val()) {
						bindAgentBySaler($(this).val());
					}
				})
			})

			function bindAgentBySaler(id) {
				var url = '/agent/select2AgentsBySaler?saler=' + id;
				$.get(url, function(data) {
					$("select[name=agent]").select2({
						data: data
					});
				});
			}
			// 表单检测
			function validateForm() {
				var status = true;
				// 手机号码 不得为空
				if($('input[name=password]').val()) {
					$('input[name=password]').val(md5($('input[name=password]').val()))
				}
				return status;
			}
		</script>

	</body>

</html>